package com.msjh.vueservice.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.msjh.vueservice.entity.Faultarea;
import com.msjh.vueservice.entity.Index;
import com.msjh.vueservice.mapper.FaultareaMapper;
import com.msjh.vueservice.service.FaultareaService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author zy
 * @since 2022-06-15
 */
@Service
public class FaultareaServiceImpl extends ServiceImpl<FaultareaMapper, Faultarea> implements FaultareaService {

    @Override
    public List<Faultarea> getAllFaultareas() {

        QueryWrapper<Faultarea> queryWrapper = new QueryWrapper<>();
        List<Faultarea> faultareas = this.baseMapper.selectList(queryWrapper);
        return faultareas;
    }

}
